package cn.lingyangwl.agile.food.core.mapper;

import cn.lingyangwl.agile.food.model.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品
 *
 * @author shenguangyang
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    IPage<Goods> pageStoreGoods(IPage<Object> page,
                                @Param("beginTime")LocalDateTime beginTime,
                                @Param("endTime") LocalDateTime endTime,
                                @Param("keyword") String keyword,
                                @Param("tenantId") String tenantId);

    List<Goods> listStoreGoods(@Param("isPublish") Boolean isPublish);

    Goods getGoods(@Param("id") Long id);
}
